package com.tsingtree.modular.mapper;

import com.tsingtree.modular.entity.NanGiftFieldConfig;
import com.tsingtree.modular.model.params.NanGiftFieldConfigParam;
import com.tsingtree.modular.model.result.NanGiftFieldConfigResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 精美礼物-字段配置表 Mapper 接口
 * </p>
 *
 * @author jagger
 * @since 2025-10-24
 */
public interface NanGiftFieldConfigMapper extends BaseMapper<NanGiftFieldConfig> {

    /**
     * 获取分页实体列表
     *
     * @author jagger
     */
    Page<NanGiftFieldConfigResult> customPageList(@Param("page") Page page, @Param("paramCondition") NanGiftFieldConfigParam paramCondition);

    /**
     * 根据活动ID获取字段配置列表
     *
     * @author jagger
     */
    List<NanGiftFieldConfig> getByActivityId(@Param("activityId") Integer activityId);

}

